import request from '@/utils/WMSRequest'

// 查询订单列表
export function orderList(query) {
  return request({
    url: 'wms/order',
    method: 'get',
    params: query
  })
}

// 查询订单详细列表
export function orderDetailList(data) {
  return request({
    url: 'wms/order/detail',
    method: 'get',
    data : data,
    // params: query
  })
}
// 删除数据
export function delorderdata(id){
  return request({
    url: 'wms/order/set/' + id +'/',
    method: 'delete',
  })
}

// 获取Order数据
export function getorderdata(id){
  return request({
    url: 'wms/order/set/' + id +'/',
    method: 'get',

  })
}

// 更新数据
export function UpdateOrder(id, data) {
  return request({
    url: 'wms/order/set/' + id + '/',
    method: 'patch',
    data: data
  })
}

// 新增数据
export function CreateOrder(data) {
  return request({
    url: 'wms/order/create/',
    method: 'post',
    data: data
  })
}

// 获取库存表
export function Getdatebound(query){
  return request({
    url: 'wms/Inventory/boardList/',
    method: 'get',
    params: query
  })
}

// 库存表更新
export function Updatebound(data){
  return request({
    url: 'wms/Inventory/boardList/',
    method: 'patch',
    data: data
  })
}
